<me:UIWS x:Class="WPFExcelReport.TWLWS03"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls" 
                    xmlns:SD="clr-namespace:WPFExcelReport;assembly=TSDDAT" 
                    xmlns:LS="clr-namespace:WPFExcelReport;assembly=TLIEFDAT" 
                    xmlns:IMG="clr-namespace:WPFExcelReport;assembly=TICC_IMAGES" 
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    xmlns:TXT="clr-namespace:WPFExcelReport;assembly=TTXTIND"  
                    xmlns:WTW="clr-namespace:WPFExcelReport;assembly=TWTGEW"  
                     xmlns:WT="clr-namespace:WPFExcelReport;assembly=TWTSAER"  
                     xmlns:WTS="clr-namespace:WPFExcelReport;assembly=TWTSCHUSS"    
                    xmlns:ST="clr-namespace:WPFExcelReport;assembly=TSTUELI"  
                    x:Name="TV"
                    Loaded="Window_Loaded"
     >
    <me:UIWS.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>       <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:NOTConverter  x:Key="not"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:NOTBoolToVisibilityConverter x:Key="nbv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </me:UIWS.Resources>
    <Grid Name="MainGrid">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition> 
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="3*"></ColumnDefinition>
            <ColumnDefinition Width="1*"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <StackPanel Grid.Row="0" Grid.Column="0"   Grid.ColumnSpan="2">
            <Grid  Margin="0,0,0,0">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"></RowDefinition>
                    <RowDefinition Height="Auto"></RowDefinition>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock  Grid.Row="0" Grid.Column="0" 
                            Text="{Binding Source={Localization:Translate Word=成品克重g/m:}}"
                            Margin="20,0,0,0" />
                <ex:NumericBox Maximum="999" Grid.Row="0" Grid.Column="1"
                               Margin="20,0,0,0" 
                                   Text="{Binding FGRLFD,ElementName=TV}" 
                                   IsReadOnly="{Binding IsEdit,ElementName=TV,Converter={StaticResource not}}" 
                                   TabIndex="502"   
                                   MinWidth="40" Width="Auto" VerticalAlignment="Top" />
                <TextBlock  Grid.Row="0"  Grid.Column="3"
                            Margin="20,0,0,0"  Text="{Binding Source={Localization:Translate Word=克重g/sqm:}}"></TextBlock>
                <ex:NumericBox   Maximum="999"  Grid.Row="0" Grid.Column="4"  
                                    Text="{Binding FGRQM,ElementName=TV}" 
                               Margin="20,0,0,0" 
                                    IsReadOnly="{Binding IsEdit,ElementName=TV,Converter={StaticResource not}}" 
                                     MinWidth="40" Width="Auto" />
                <TextBlock  Grid.Row="0"  Grid.Column="5" Margin="20,0,0,0"  Text="{Binding Source={Localization:Translate Word=成布匹长:}}"></TextBlock>
                <ex:NumericBox   Maximum="9999"  Grid.Row="0" Grid.Column="6"  
                                    Text="{Binding WAFSTDLG,ElementName=TV,Converter={StaticResource d1000}}"  
                                     Margin="20,0,0,0" 
                                    IsReadOnly="{Binding IsEdit,ElementName=TV,Converter={StaticResource not}}" 
                                     MinWidth="40" Width="Auto" />

                <TextBlock  Grid.Row="1" Grid.Column="0" 
                            Margin="20,0,0,0" 
                            Text="{Binding Source={Localization:Translate Word=坯布克重g/m:}}"></TextBlock>
                <ex:NumericBox Maximum="999" Grid.Row="1" Grid.Column="1"
                                   Text="{Binding WARGRLFD}" 
                                   IsReadOnly="{Binding IsEdit,ElementName=TV,Converter={StaticResource not}}" 
                                   TabIndex="502"   
                               Margin="20,0,0,0" 
                                   MinWidth="40" Width="Auto" VerticalAlignment="Top" />
                <TextBlock  Grid.Row="1"  Grid.Column="3" Margin="20,0,0,0"  Text="{Binding Source={Localization:Translate Word=克重g/sqm:}}"></TextBlock>
                <ex:NumericBox   Maximum="999"  Grid.Row="1" Grid.Column="4"  
                                    Text="{Binding WARGRQM}" 
                               Margin="20,0,0,0" 
                                    IsReadOnly="{Binding IsEdit,ElementName=TV,Converter={StaticResource not}}" 
                                     MinWidth="40" Width="Auto" />
                <TextBlock  Grid.Row="1"  Grid.Column="5" Margin="20,0,0,0"  Text="{Binding Source={Localization:Translate Word=坯布匹长:}}"></TextBlock>
                <ex:NumericBox   Maximum="9999"  Grid.Row="1" Grid.Column="6"  
                                    Text="{Binding WARSTDLG,ElementName=TV,Converter={StaticResource d1000}}"  
                                     Margin="20,0,0,0" 
                                    IsReadOnly="{Binding IsEdit,ElementName=TV,Converter={StaticResource not}}" 
                                     MinWidth="40" Width="Auto" />
                
            </Grid> 
        </StackPanel>
        <Grid Grid.Row="1"  Grid.Column="0">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <Grid Grid.Column="0" Grid.Row="0" Grid.RowSpan="6">
                <TextBlock Text="{Binding Source={Localization:Translate Word=织造工艺:}}"/>
            </Grid>
            <Grid Grid.Row="0" Grid.Column="1" >
                <TextBlock Text="{Binding Source={Localization:Translate Word=项目}}"/>
            </Grid>
            <Grid Grid.Row="1" Grid.Column="1" >
                <WrapPanel>
                    <TextBlock Text="{Binding Source={Localization:Translate Word=密度:}}"/>

                    <SD:TSSD0181  Margin="0,5,0,0" Grid.Row="1" Grid.Column="2" Name="c181"   
                                  LMS="TCM;"
                                  KEY="{Binding DENUM,ElementName=TV}" 
                                  EXAUF="{Binding DENUM,ElementName=TV}" 
                                  IsEdit="{Binding IsEdit,ElementName=TV}" />
                </WrapPanel>  
            </Grid>
            <Grid Grid.Row="2" Grid.Column="1" >
                <TextBlock Text="{Binding Source={Localization:Translate Word=10CM}}"/>
            </Grid>
            <Grid Grid.Row="3" Grid.Column="1" >
                <TextBlock Text="{Binding Source={Localization:Translate Word=总经}}"/>
            </Grid>
            <Grid Grid.Row="4" Grid.Column="1" >
                <TextBlock Text="{Binding Source={Localization:Translate Word=边纱排列}}"/>
            </Grid>  
            <Grid Grid.Row="0" Grid.RowSpan="3" Grid.Column="3"   >
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"></RowDefinition>
                    <RowDefinition Height="Auto"></RowDefinition>
                    <RowDefinition Height="Auto"></RowDefinition>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="60"></ColumnDefinition>
                    <ColumnDefinition Width="60"></ColumnDefinition>
                    <ColumnDefinition Width="60"></ColumnDefinition>
                    <ColumnDefinition Width="60"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" Text="{Binding Source={Localization:Translate Word=经密}}" HorizontalAlignment="Center"/>
                <TextBlock Grid.Row="1" Grid.Column="0" Text="{Binding Source={Localization:Translate Word=机上}}"/>
                <TextBlock Grid.Row="1" Grid.Column="1" Text="{Binding Source={Localization:Translate Word=坯布}}"/>
                <TextBlock Grid.Row="1" Grid.Column="2" Text="{Binding Source={Localization:Translate Word=成品}}"/>
                <ex:NumericBox Grid.Row="2" Grid.Column="0" Text="{Binding WASCHLIAUF,Converter={StaticResource ResourceKey=d100}}" IsReadOnly="{Binding IsEdit,ElementName=TV,Converter={StaticResource not}}"/>
                <ex:NumericBox Grid.Row="2" Grid.Column="1" Text="{Binding WARFDDIK,Converter={StaticResource ResourceKey=d100}}" IsReadOnly="{Binding IsEdit,ElementName=TV,Converter={StaticResource not}}"/>
                <ex:NumericBox Grid.Row="2" Grid.Column="2" Text="{Binding FFDDIK,Converter={StaticResource ResourceKey=d100},ElementName=TV}" IsReadOnly="{Binding IsEdit,ElementName=TV,Converter={StaticResource not}}"/>
            </Grid>
            <Grid Grid.Row="0" Grid.RowSpan="3" Grid.Column="4"   >
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"></RowDefinition>
                    <RowDefinition Height="Auto"></RowDefinition>
                    <RowDefinition Height="Auto"></RowDefinition>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="60"></ColumnDefinition>
                    <ColumnDefinition Width="60"></ColumnDefinition>
                    <ColumnDefinition Width="60"></ColumnDefinition>
                    <ColumnDefinition Width="60"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" Text="{Binding Source={Localization:Translate Word=纬密}}" HorizontalAlignment="Center"/>
                <TextBlock Grid.Row="1" Grid.Column="0" Text="{Binding Source={Localization:Translate Word=机上}}"/>
                <TextBlock Grid.Row="1" Grid.Column="1" Text="{Binding Source={Localization:Translate Word=坯布}}"/>
                <TextBlock Grid.Row="1" Grid.Column="2" Text="{Binding Source={Localization:Translate Word=成品}}"/>
                <ex:NumericBox Grid.Row="2" Grid.Column="0" Text="{Binding GFDISM,Converter={StaticResource ResourceKey=d100},ElementName=TV}" 
                               IsReadOnly="{Binding IsEdit,ElementName=TV,Converter={StaticResource not}}"/>
                <ex:NumericBox Grid.Row="2" Grid.Column="1" Text="{Binding WARFDDIS,Converter={StaticResource ResourceKey=d100}}" IsReadOnly="{Binding IsEdit,ElementName=TV,Converter={StaticResource not}}"/>
                <ex:NumericBox Grid.Row="2" Grid.Column="2" Text="{Binding FFDDIS,Converter={StaticResource ResourceKey=d100},ElementName=TV}" IsReadOnly="{Binding IsEdit,ElementName=TV,Converter={StaticResource not}}"/>
            </Grid>
            <Grid Grid.Row="0" Grid.RowSpan="3" Grid.Column="5"   >
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"></RowDefinition>
                    <RowDefinition Height="Auto"></RowDefinition>
                    <RowDefinition Height="Auto"></RowDefinition>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="60"></ColumnDefinition>
                    <ColumnDefinition Width="60"></ColumnDefinition>
                    <ColumnDefinition Width="60"></ColumnDefinition>
                    <ColumnDefinition Width="60"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" Text="{Binding Source={Localization:Translate Word=幅宽CM}}" HorizontalAlignment="Center"/>
                <TextBlock Grid.Row="1" Grid.Column="0" Text="{Binding Source={Localization:Translate Word=机上}}"/>
                <TextBlock Grid.Row="1" Grid.Column="1" Text="{Binding Source={Localization:Translate Word=坯布}}"/>
                <TextBlock Grid.Row="1" Grid.Column="2" Text="{Binding Source={Localization:Translate Word=成品}}"/>
                <ex:NumericBox Grid.Row="2" Grid.Column="0" Text="{Binding RBRTOL,Converter={StaticResource ResourceKey=d10},ElementName=TV}" 
                               IsReadOnly="{Binding IsEdit,ElementName=TV,Converter={StaticResource not}}"/>
                <ex:NumericBox Grid.Row="2" Grid.Column="1" Text="{Binding RWBRT,Converter={StaticResource ResourceKey=d10},ElementName=TV}" 
                               IsReadOnly="{Binding IsEdit,ElementName=TV,Converter={StaticResource not}}"/>
                <ex:NumericBox Grid.Row="2" Grid.Column="2" Text="{Binding FBRTU,Converter={StaticResource ResourceKey=d10},ElementName=TV}" 
                               IsReadOnly="{Binding IsEdit,ElementName=TV,Converter={StaticResource not}}"/>
            </Grid>
            
        </Grid> 
        <ST:TWS04   Grid.Row="0" Grid.RowSpan="2" Grid.Column="1"
                Margin="0,5,0,0" Name="cWS04"
                       EXAUF="{Binding KEY,ElementName=TV}"
                       IsEdit="{Binding IsEdit,ElementName=TV}"
                       IsSaved="{Binding IsSaved,ElementName=TV}"
                      />

    </Grid>
</me:UIWS>

    
